<{include file="section/admin/admin_header.tpl"}>
<body>
<{include file="section/admin/admin_header_login_bar.tpl"}>
<div id="contentA" class="clear" style="width:1300px;">
	<!--leftsidebar sr-->
	<{include file="section/admin/admin_left_sidebar.tpl"}>
    <!--/leftsidebar end-->
    <div class="rightCont">
		<!--path st-->
        <div class="path">您的位置：<a href="/">首页</a>&gt;<a href="/merchantapply?status=0">商家入住审核</a>&gt; 商家申请明细</div>
        <!--/path end-->

		<h2 class="title01"><span>商家申请审核</span></h2>
        <div class="line1"></div>
		<div class="boxform">
			<form action="/merchantapply/update_merchantapply" method="post" name="frm" id="frm">
				<input type='hidden' name="id" id="id" value="<{$data.id}>" />
				<input type='hidden' name="verify_action" id="verify_action" value="" />
			<ul class="clear">
            <li class="i1"> passport账号：</li>
			<li><span class="in"> <{$data.passport}></span></li>
			</ul>
            <ul class="clear">
            <li class="i1"> 商铺名称：</li>
			<li><span class="in"> <{$data.shop_name}></span></li>
			</ul>
            <ul class="clear" >
            <li class="i1">商铺logo：</li>
            <li><{if $data.logo}><a href="<{$data.logo.img_url}>" target="_blank"><img src="<{$data.logo.img_url}>" width="200" height="100" /></a><{/if}></li>
            </ul>
			<ul class="clear">
            <li class="i1">商铺类型：</li>
            <li><span class="in"><{$data.shop_type_name}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">主营行业：</li>
            <li><span class="in">
				<{foreach name=cnames from=$data.category_names key=cid item=cname}>
				>	<{$cname}> 
				<{/foreach}>
			</span></li>
            </ul>
            <ul class="clear">
            <li class="i1">主营业务：</li>
            <li><span class="in"><{$data.major_business}></span></li>
            </ul>
			<ul class="clear">
            <li class="i1">企业运营资质：</li>
            <li><{if $data.license.img_url}><a href="<{$data.license.img_url}>" target="_blank"><img src="<{$data.license.img_url}>" width="200" height="100" /></a><{else}><{/if}></li>
            </ul>
			<ul class="clear">
            <li class="i1">品牌资质：</li>
            <li><{if $data.brand}>
				<{foreach from=$data.brand key=key item=brand}>
					<a href="<{$brand.img_url}>" target="_blank"><img src="<{$brand.img_url}>" width="200" height="100" /></a>
				<{/foreach}>
			<{/if}></li>
            </ul>
			<ul class="clear">
            <li class="i1"> 省：</li>
			<li><span class="in"> <{$data.province}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 市：</li>
			<li><span class="in"> <{$data.city}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 公司名称：</li>
			<li><span class="in"> <{$data.company_name}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 详细地址：</li>
			<li><span class="in"> <{$data.company_address}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 公司网址：</li>
			<li><span class="in"><{if $data.url}> <a href="<{$data.url}>" target="_blank"><{$data.url}></a><{/if}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 联系人：</li>
			<li><span class="in"> <{$data.name}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 手机：</li>
			<li><span class="in"> <{$data.mobile}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 固定电话:</li>
			<li><span class="in"> <{$data.phone}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 电子邮件：</li>
			<li><span class="in"> <{$data.email}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 支付宝用户名：</li>
			<li><span class="in"> <{$data.alipay_user}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 支付宝帐户：</li>
			<li><span class="in"> <{$data.alipay_account}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 商铺域名：</li>
			<li><span class="in"> <{$data.domain}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 商铺介绍：</li>
			<li><span class="in"> <{$data.introduce}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 商铺店标：</li>
			<li><span class="in"> <{$data.shop_logo}></span></li>
			</ul>
			 <ul class="clear">
            <li class="i1"> 申请时间：</li>
			<li><span class="in"> <{$data.apply_time}></span></li>
			</ul>
			
			<div class="line margin25"></div>
            
			<ul class="clear">
			<li>&nbsp;</li>
			<li>审核说明 :</li>
			<li>选中的代表对应项已审核通过，未选中的代表未审核 ,其中前3项不可手动审核，商家完善对应信息后，自动升级为审核通过状态</li>
            </ul>

			<ul class="clear">
            <li class="i1">审核信息列表: </li>
			</ul>
			<{foreach from=$verifyinfo item=item key = key}>
			<ul class="clear">
			<li class="il"><span style="width:150px;float:left;">  <{$item.title}>  </span> : <{if $key < 3}><{if $item.checked}>审核已通过<{else}>审核未通过<{/if}><{else}><input type='radio' name="uch_<{$item.key}>"  <{if $key < 3}> disabled="true" <{/if}> value="<{$item.val}>,<{$item.key}>,1" <{if $item.checked == 1}>checked=true<{/if}>> 审核通过 <input type='radio' name="uch_<{$item.key}>"  <{if $key < 3}> disabled="true" <{/if}> value="<{$item.val}>,<{$item.key}>,0" <{if $item.checked == 2}>checked=true<{/if}>> 审核拒绝 <{/if}> &nbsp; &nbsp; &nbsp; <{if $key < 2 && !$item.checked}><a href="<{if $key == 0}>/merchantapply/business/<{$data.id}><{else}>/merchantapply/brand/<{$data.id}><{/if}>" target="_blank">去审核</a><{/if}>	
			</li></ul>
			<{/foreach}>
			<{if !$flag}>
			<ul class="clear">
			<li> &nbsp; </li>
			<li>
           	<input type="button" class="btn04" value="提交" name="sub1" onclick="update_info(1);"/>　<input type="button" name="" class="btn04" value="取消" onclick="reset();"/>
            </li>
			</ul>
			<{/if}>
			</form>
        </div>
        
    </div>
</div>
<script>
function update_info(num)
{
	var frm		= document.getElementById('frm');
	var datas	= document.getElementsByTagName('input');
	var flag	= false;
	var	verify	= '';
	for(var i=0; i< datas.length; i++)
	{
		if(datas[i].checked)
		{		
			flag = flag || true;
			verify	+= datas[i].value + ';';
		}
	}
	document.getElementById('verify_action').value	= verify;
	if(flag)
		frm.submit();
	else
		alert('请选择审核状态');
}
</script>
</body>
</html>
